# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=nickle
pkgver=2.101
pkgrel=0
pkgdesc="Desk calculator language with C-like syntax"
url="https://nickle.org/"
arch="all"
license="MIT"
makedepends="
	bison
	flex
	gmp-dev
	meson
	readline-dev
	"
checkdepends="
	bc
	coreutils-fmt
	"
subpackages="$pkgname-dev $pkgname-doc"
source="https://nickle.org/release/nickle-$pkgver.tar.xz"

build() {
	abuild-meson \
		output .
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output

	install -Dvm644 COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
}

sha512sums="
2cbc705a5f249e0d478bd10be4b05e888580d5a94ce072097c0581b450417d72216a33a547d49233883bbcc930ab72938be6898de722d917505120aac3beacfc  nickle-2.101.tar.xz
"
